package com.tanhua.dubbo.mappers;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.tanhua.model.domain.BlackList;
import com.tanhua.model.domain.UserInfo;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

public interface BlackListMapper extends BaseMapper<BlackList> {
    @Select("select * from tb_user_info where id in(select black_user_id from tb_black_list where user_id=#{userId})")
    IPage<UserInfo> findBlackList(@Param("ip") IPage<UserInfo> ip,@Param("userId") Long userId);
}